package com.imooc.ecommerce;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * <p>Nacos Client 工程启动入口
 *
 * @author Yaxi.Zhang
 * @since 2022/10/31 22:44
 */
@ServletComponentScan   // 可以扫描到 filter 配置
@EnableCircuitBreaker   // 启动 Hystrix
@EnableFeignClients
@EnableDiscoveryClient  // 允许服务注册
@SpringBootApplication
public class NacosClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(NacosClientApplication.class, args);
    }

}
